package CompositePattern;
public class TextFile extends AbstractFile{
    private String Text;

    public String getText() {
        return Text;
    }

    public void setText(String text) {
        Text = text;
    }

    public TextFile(String text){
        this.Text=text;
    }
    @Override
    public boolean add(AbstractFile file) {
        return false;
    }

    @Override
    public boolean remove(AbstractFile file) {
        return false;
    }

    @Override
    public AbstractFile getChild(int index) {
        return null;
    }

    @Override
    public String Openfile() {
        return getText();
    }
}
